import request from '@/utils/request'
export function getAllUser() {
    return request({
        url: "/admin/getAllUser",
        method: 'get'
    })
}

export function delUserById(id) {
    return request({
        url: "/admin/delUserById",
        method: 'post',
        params: { id }
    })
}

export function searchUserByUserName(userName) {
    return request({
        url: "/admin/searchUserByUserName",
        method: 'post',
        params: { userName }
    })
}